Other Structures
MGLSphericalPosition
struct MGLSphericalPosition {}
A structure containing information about the position of the light source relative to lit geometries.
-
radial
Distance from the center of the base of an object to its light.
Declaration
Objective-C
CGFloat radialSwift
var radial: CGFloat -
azimuthal
Position of the light relative to 0° (0° when
MGLLight.anchoris set to viewport corresponds to the top of the viewport, or 0° whenMGLLight.anchoris set to map corresponds to due north, and degrees proceed clockwise).Declaration
Objective-C
CLLocationDirection azimuthalSwift
var azimuthal: CLLocationDirection -
polar
Indicates the height of the light (from 0°, directly above, to 180°, directly below).
Declaration
Objective-C
CLLocationDirection polarSwift
var polar: CLLocationDirection
MGLTransition
struct MGLTransition {}
A structure containing information about a transition.
-
duration
The amount of time the animation should take, not including the delay.
Declaration
Objective-C
NSTimeInterval durationSwift
var duration: TimeInterval -
delay
The amount of time in seconds to wait before beginning the animation.
Declaration
Objective-C
NSTimeInterval delaySwift
var delay: TimeInterval